﻿using static CyberU;
using static CyberU.UI;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;

public class ExitApplication : MonoBehaviour
{
    public void OnExitButtonClicked()
    {
        // Delog("1");
#if UNITY_EDITOR
        UnityEditor.EditorApplication.isPlaying = false; // 在编辑器内停止播放
#else
        Application.Quit(); // 在构建的应用中退出
#endif
    }

    void Awake()
    {
        BindClick(OnExitButtonClicked,gameObject);
    }
}